

<table class="data-grid">
    <thead>
        <tr>
            <th>ID</th>
            <th>Nazwa</th>
            <th>Wartość</th>
            <th>Akcja</th>
        </tr>
    </thead>
    <tbody>
        <?php if (count($this->paginator)): ?>
            <?php foreach ($this->paginator as $idx => $item): ?>
                <tr class="item-<?php echo $idx ?>">
                    <td ><?php echo $item['id'] ?></td>
                    <td ><?php echo $item['name'] ?></td>
                    <td ><?php echo $item['value'] ?></td>
                    <td >
                        <a href="<?php echo $this->url(array('module' => 'admin', 'action' => 'settingedit', 'id' => $item['id']), null, true) ?>">Edytuj</a><br>
                    </td>
                </tr>
            <?php endforeach; ?>
        <?php endif; ?>
    </tbody>
    <tfoot>
        <tr>
            <td colspan="0">
                <?php
                echo $this->paginationControl($this->paginator, 'Sliding', 'pg_nav01.phtml');
                ?>
            </td>
        </tr>
    </tfoot>
</table>
